<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 800px;
            border: 1px solid gray;
            margin: 0 auto;
            padding: 10px;
            border-radius: 0px 30px 0px 30px;
            color: gray;
        }
        .box p{
            margin-top: 5px;
        }
        .box div{
            justify-content: space-between;
            display: flex;
        }
        .box div span{
            /* margin-right: 50px; */
            display: block;
        }
    </style>
</head>
<body>
    <!-- <div class="box">
        <p>产品:</p>
        <div>
            <span>商品类型:</span>
            <span>商品编号:</span>
            <span>商品毛重:</span>
            <span>商品产地:</span>
        </div>
    </div> -->

    <script>
         let obj = {
            goods:'小米(MI)',
            name:'小米10青春版',
            num:'100012816024',
            weight:'0.55kg',
            address:'中国'
        }
        obj.name = '小米10 PLUS'
        obj.color = 'pink'
        document.write(`
        <div class="box">
            <p>产品:${obj.goods}</p>
            <div>
                <span>商品名称:${obj.name}</span>
                <span>商品编号:${obj.num}</span>
                <span>商品毛重:${obj.weight}</span>
                <span>商品产地:${obj.address}</span>
            </div>
        </div>
        `)
    </script>
</body>
</html>